<head>
    <script type="text/javascript">
       [...] message()
         {alert("This alert box was called with the onload event")}
    </script>
  </head>
<body onload="message()">
</body>